export default function UserList() {
    const users = [
        { id: 1, name: 'Alice', age: 24 },
        { id: 2, name: 'Bob', age: 28 },
        { id: 3, name: 'Charlie', age: 75 },
    ];
    return (
        <ul className="userlist">
            {users.map((user) => (
                <li key={user.id}>{user.name}{user.age}岁
                <span>{user.age > 60 ? "这是一个老人": ""}</span>
                </li>
            ))}
        </ul>

    )
}
